import base64


def base64decode(encoded_str):
    decoded_bytes = base64.b64decode(encoded_str)
    decoded_string = decoded_bytes.decode('utf-8')
    return decoded_string

def base64encode(origin_str):
    encoded_bytes = base64.b64encode(origin_str.encode('utf-8'))
    encoded_string = encoded_bytes.decode('utf-8')
    return encoded_string

if __name__ == '__main__':
    pass